package cn.tedu.backend.portal.controller;

import cn.tedu.backend.portal.model.RecommendTime;
import cn.tedu.backend.portal.model.Season;
import cn.tedu.backend.portal.service.IRecommendService;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Slf4j
public class RecommendController {
    @Resource
    private IRecommendService service;

  @RequestMapping("/selectRecommendTime")
  public List<RecommendTime> selectRecommendTime(){
    return service.selectRecommendTime();
  }


//    @RequestMapping("/storagelist")
//    public PageInfo<RecommendTime> list(Integer pageNum){
//        //分页
//        if (pageNum==null)
//            pageNum=1;
//        Integer pageSize=12;
//        //添加翻页page参数   ↓↓↓↓↓↓↓↓
//        PageInfo<RecommendTime> pageInfo = service.getStorages(pageNum,pageSize);
//
//        return pageInfo;
//
//    }
//
//    @RequestMapping("/deleteStorageById")
//    public int deleteById(int storageId){
//        return service.deleteStorageById(storageId);
//    }
}
